home *** CD-ROM | disk | FTP | other *** search
/ SunSoft Catalyst CDWARE 1996 May to August / Catalyst CDWARE 1996 May to August.iso / .products / .bin / httpd / Solaris_2 / finger < prev    next >
Text File  |  1995-05-18  |  454b  |  30 lines

  1. #!/bin/sh
  2.  
  3. FINGER=/usr/ucb/finger
  4.  
  5. echo Content-type: text/html
  6. echo
  7.  
  8. if [ -x $FINGER ]; then
  9.     if [ $# = 0 ]; then
  10.         cat << EOM
  11. <HTML><HEAD><TITLE>Finger Gateway</TITLE></HEAD><BODY>
  12. <H1>Finger Gateway</H1>
  13.  
  14. <ISINDEX>
  15.  
  16. This is a gateway to "finger". Type a user@host combination in your browser's
  17. search dialog.<P>
  18. EOM
  19.     else
  20.         echo \<PRE\>
  21.         $FINGER "$*"
  22.         echo \</PRE\>
  23.     fi
  24. else
  25.     echo Cannot find finger on this system.
  26. fi
  27. cat << EOM
  28. </BODY></HTML>
  29. EOM
  30.